<?php /* Smarty version 2.6.12, created on 2008-11-21 09:18:20
         compiled from help/contactus.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'help/contactus.tpl', 5, false),array('modifier', 'strip', 'help/contactus.tpl', 8, false),array('modifier', 'replace', 'help/contactus.tpl', 8, false),array('modifier', 'escape', 'help/contactus.tpl', 60, false),array('modifier', 'default', 'help/contactus.tpl', 220, false),)), $this); ?>
<?php func_load_lang($this, "help/contactus.tpl","lbl_subject,lbl_message,txt_contact_us_header,lbl_username,lbl_title,lbl_first_name,lbl_last_name,lbl_company,lbl_address,lbl_address_2,lbl_city,lbl_county,lbl_state,lbl_country,lbl_zip_code,lbl_phone,lbl_email,lbl_fax,lbl_web_site,lbl_department,lbl_all,lbl_partners,lbl_marketing_publicity,lbl_web_design,lbl_sales_department,lbl_subject,lbl_message,lbl_submit,txt_contact_us_sent,lbl_contact_us"); ?><script type="text/javascript" language="JavaScript 1.2">
<!--
var requiredFields = [];
<?php echo smarty_function_counter(array('start' => "-1",'print' => false,'name' => 'requiredFields'), $this);?>

<?php $_from = $this->_tpl_vars['default_fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
 if ($this->_tpl_vars['v']['required'] == 'Y' && $this->_tpl_vars['v']['avail'] == 'Y'): ?>
requiredFields[<?php echo smarty_function_counter(array('name' => 'requiredFields'), $this);?>
] = ["<?php echo $this->_tpl_vars['k']; ?>
","<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['v']['title'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
",false];
<?php endif;  endforeach; endif; unset($_from);  $_from = $this->_tpl_vars['additional_fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
 if ($this->_tpl_vars['v']['required'] == 'Y' && $this->_tpl_vars['v']['type'] == 'T' && $this->_tpl_vars['v']['avail'] == 'Y'): ?> 
requiredFields[<?php echo smarty_function_counter(array('name' => 'requiredFields'), $this);?>
] = ["additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
","<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['v']['title'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
",false];
<?php endif; ?> 
<?php endforeach; endif; unset($_from); ?>
requiredFields[<?php echo smarty_function_counter(array('name' => 'requiredFields'), $this);?>
] = ["subject","<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_subject'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
",false];
requiredFields[<?php echo smarty_function_counter(array('name' => 'requiredFields'), $this);?>
] = ["message_body","<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_message'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
",false];
-->
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "check_required_fields_js.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "check_email_script.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "check_zipcode_js.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if ($GLOBALS['HTTP_GET_VARS']['mode'] == 'update'):  echo $this->_tpl_vars['lng']['txt_contact_us_header']; ?>

<?php endif; ?>
<p />
<?php ob_start();  if ($GLOBALS['HTTP_GET_VARS']['mode'] == 'update'): ?>
<form action="help.php?section=contactus&amp;mode=update&amp;action=contactus" method="post" name="registerform">
<table width="100%" cellspacing="0" cellpadding="2">

<?php if ($this->_tpl_vars['default_fields']['username']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_username']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['username']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="username" name="username" size="32" maxlength="32" value="<?php if ($this->_tpl_vars['userinfo']['username'] != ''):  echo $this->_tpl_vars['userinfo']['username'];  else:  echo $this->_tpl_vars['userinfo']['login'];  endif; ?>" />
</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['default_fields']['title']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_title']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['title']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<select id="title" name="title">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/title_selector.tpl", 'smarty_include_vars' => array('field' => $this->_tpl_vars['userinfo']['titleid'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</select>
</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['default_fields']['firstname']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_first_name']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['firstname']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="firstname" name="firstname" size="32" maxlength="32" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['firstname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['firstname'] == "" && $this->_tpl_vars['default_fields']['firstname']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['lastname']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_last_name']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['lastname']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="lastname" name="lastname" size="32" maxlength="32" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['lastname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['lastname'] == "" && $this->_tpl_vars['default_fields']['lastname']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['default_fields']['company']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_company']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['company']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="company" name="company" size="32" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['company'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['company'] == "" && $this->_tpl_vars['default_fields']['company']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['b_address']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_address']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_address']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="b_address" name="b_address" size="32" maxlength="64" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['b_address'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['b_address'] == "" && $this->_tpl_vars['default_fields']['b_address']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['b_address_2']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_address_2']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_address_2']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="b_address_2" name="b_address_2" size="32" maxlength="64" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['b_address_2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['b_address_2'] == "" && $this->_tpl_vars['default_fields']['b_address_2']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['b_city']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_city']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_city']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="b_city" name="b_city" size="32" maxlength="64" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['b_city'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['b_city'] == "" && $this->_tpl_vars['default_fields']['b_city']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['b_county']['avail'] == 'Y' && $this->_tpl_vars['config']['General']['use_counties'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_county']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_county']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/counties.tpl", 'smarty_include_vars' => array('counties' => $this->_tpl_vars['counties'],'name' => 'b_county','default' => $this->_tpl_vars['userinfo']['b_county'],'stateid' => $this->_tpl_vars['userinfo']['b_stateid'],'country_name' => 'b_country')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['default_fields']['b_state']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_state']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_state']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/states.tpl", 'smarty_include_vars' => array('states' => $this->_tpl_vars['states'],'name' => 'b_state','default' => $this->_tpl_vars['userinfo']['b_state'],'default_country' => $this->_tpl_vars['userinfo']['b_country'],'country_name' => 'b_country')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['b_country']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_country']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_country']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<select id="b_country" name="b_country" onchange="javascript: check_zip_code();">
<?php unset($this->_sections['country_idx']);
$this->_sections['country_idx']['name'] = 'country_idx';
$this->_sections['country_idx']['loop'] = is_array($_loop=$this->_tpl_vars['countries']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['country_idx']['show'] = true;
$this->_sections['country_idx']['max'] = $this->_sections['country_idx']['loop'];
$this->_sections['country_idx']['step'] = 1;
$this->_sections['country_idx']['start'] = $this->_sections['country_idx']['step'] > 0 ? 0 : $this->_sections['country_idx']['loop']-1;
if ($this->_sections['country_idx']['show']) {
    $this->_sections['country_idx']['total'] = $this->_sections['country_idx']['loop'];
    if ($this->_sections['country_idx']['total'] == 0)
        $this->_sections['country_idx']['show'] = false;
} else
    $this->_sections['country_idx']['total'] = 0;
if ($this->_sections['country_idx']['show']):

            for ($this->_sections['country_idx']['index'] = $this->_sections['country_idx']['start'], $this->_sections['country_idx']['iteration'] = 1;
                 $this->_sections['country_idx']['iteration'] <= $this->_sections['country_idx']['total'];
                 $this->_sections['country_idx']['index'] += $this->_sections['country_idx']['step'], $this->_sections['country_idx']['iteration']++):
$this->_sections['country_idx']['rownum'] = $this->_sections['country_idx']['iteration'];
$this->_sections['country_idx']['index_prev'] = $this->_sections['country_idx']['index'] - $this->_sections['country_idx']['step'];
$this->_sections['country_idx']['index_next'] = $this->_sections['country_idx']['index'] + $this->_sections['country_idx']['step'];
$this->_sections['country_idx']['first']      = ($this->_sections['country_idx']['iteration'] == 1);
$this->_sections['country_idx']['last']       = ($this->_sections['country_idx']['iteration'] == $this->_sections['country_idx']['total']);
?>
<option value="<?php echo $this->_tpl_vars['countries'][$this->_sections['country_idx']['index']]['country_code']; ?>
"<?php if ($this->_tpl_vars['userinfo']['b_country'] == $this->_tpl_vars['countries'][$this->_sections['country_idx']['index']]['country_code']): ?> selected="selected"<?php elseif ($this->_tpl_vars['countries'][$this->_sections['country_idx']['index']]['country_code'] == $this->_tpl_vars['config']['General']['default_country'] && $this->_tpl_vars['userinfo']['b_country'] == ""): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['countries'][$this->_sections['country_idx']['index']]['country']; ?>
</option>
<?php endfor; endif; ?>
</select>
</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['js_enabled'] == 'Y' && $this->_tpl_vars['config']['General']['use_js_states'] == 'Y' && $this->_tpl_vars['default_fields']['b_state']['avail'] == 'Y' && $this->_tpl_vars['default_fields']['b_country']['avail'] == 'Y'): ?>
<tr style="display: none;">
	<td>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "change_states_js.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/register_states.tpl", 'smarty_include_vars' => array('state_name' => 'b_state','country_name' => 'b_country','county_name' => 'b_county','state_value' => $this->_tpl_vars['userinfo']['b_state'],'county_value' => $this->_tpl_vars['userinfo']['b_county'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['default_fields']['b_zipcode']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_zip_code']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['b_zipcode']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="b_zipcode" name="b_zipcode" size="32" maxlength="32" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['b_zipcode'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onchange="javascript: check_zip_code(document.getElementById('b_country'), this);" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['b_zipcode'] == "" && $this->_tpl_vars['default_fields']['b_zipcode']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['phone']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_phone']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['phone']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="phone" name="phone" size="32" maxlength="32" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['phone'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['phone'] == "" && $this->_tpl_vars['default_fields']['phone']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['email']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_email']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['email']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="email" name="email" size="32" maxlength="128" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['email'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onchange="javascript: checkEmailAddress(this);" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['email'] == "" && $this->_tpl_vars['default_fields']['email']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['default_fields']['fax']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_fax']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['fax']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="fax" name="fax" size="32" maxlength="128" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['fax'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>
<?php endif; ?>
 
<?php if ($this->_tpl_vars['default_fields']['url']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_web_site']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['url']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<input type="text" id="url" name="url" size="32" maxlength="128" value="<?php if ($this->_tpl_vars['userinfo']['url'] == ""): ?>http://<?php else:  echo $this->_tpl_vars['userinfo']['url'];  endif; ?>" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['url'] == "" && $this->_tpl_vars['default_fields']['url']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif; ?>

<?php $_from = $this->_tpl_vars['additional_fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
 if ($this->_tpl_vars['v']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo ((is_array($_tmp=@$this->_tpl_vars['v']['title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['v']['field']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['v']['field'])); ?>
</td>
<td><?php if ($this->_tpl_vars['v']['required'] == 'Y'): ?><font class="Star">*</font><?php else: ?>&nbsp;<?php endif; ?></td>
<td nowrap="nowrap">
<?php if ($this->_tpl_vars['v']['type'] == 'T'): ?>
<input type="text" id="additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
" name="additional_values[<?php echo $this->_tpl_vars['v']['fieldid']; ?>
]" id="additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
" size="32" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php elseif ($this->_tpl_vars['v']['type'] == 'C'): ?>
<input type="checkbox" id="additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
" name="additional_values[<?php echo $this->_tpl_vars['v']['fieldid']; ?>
]" id="additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
" value="Y"<?php if ($this->_tpl_vars['v']['value'] == 'Y'): ?> checked="checked"<?php endif; ?> />
<?php elseif ($this->_tpl_vars['v']['type'] == 'S'): ?>
<select id="additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
" name="additional_values[<?php echo $this->_tpl_vars['v']['fieldid']; ?>
]" id="additional_values_<?php echo $this->_tpl_vars['v']['fieldid']; ?>
">
<?php $_from = $this->_tpl_vars['v']['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['o']):
?>
<option value='<?php echo ((is_array($_tmp=$this->_tpl_vars['o'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
'<?php if ($this->_tpl_vars['v']['value'] == $this->_tpl_vars['o']): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['o'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<?php endif;  if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['v']['value'] == "" && $this->_tpl_vars['v']['required'] == 'Y'): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>
<?php endif;  endforeach; endif; unset($_from); ?>

<?php if ($this->_tpl_vars['default_fields']['department']['avail'] == 'Y'): ?>
<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_department']; ?>
</td>
<td><?php if ($this->_tpl_vars['default_fields']['department']['required'] == 'Y'): ?><font class="Star">*</font><?php endif; ?></td>
<td nowrap="nowrap">
<select id="department" name="department">
<option value="All" selected="selected"><?php echo $this->_tpl_vars['lng']['lbl_all']; ?>
</option>
<option value="Partners"><?php echo $this->_tpl_vars['lng']['lbl_partners']; ?>
</option>
<option value="Marketing / publicity"><?php echo $this->_tpl_vars['lng']['lbl_marketing_publicity']; ?>
</option>
<option value="Webdesign"><?php echo $this->_tpl_vars['lng']['lbl_web_design']; ?>
</option>
<option value="Sales"><?php echo $this->_tpl_vars['lng']['lbl_sales_department']; ?>
</option>
</select>
</td>
</tr>
<?php endif; ?>

<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_subject']; ?>
</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap">
<input type="text" id="subject" name="subject" size="32" maxlength="128" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['subject'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['subject'] == ""): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>

<tr valign="middle">
<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_message']; ?>
</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap">
<textarea cols="48" id="message_body" rows="12" name="body"><?php echo $this->_tpl_vars['userinfo']['body']; ?>
</textarea>
<?php if ($this->_tpl_vars['fillerror'] != "" && $this->_tpl_vars['userinfo']['body'] == ""): ?><font class="Star">&lt;&lt;</font><?php endif; ?>
</td>
</tr>

<?php if ($this->_tpl_vars['active_modules']['Image_Verification'] && $this->_tpl_vars['show_antibot']['on_contact_us'] == 'Y'):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Image_Verification/spambot_arrest.tpl", 'smarty_include_vars' => array('mode' => 'advanced','id' => $this->_tpl_vars['antibot_sections']['on_contact_us'],'antibot_err' => $this->_tpl_vars['antibot_contactus_err'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
<tr valign="middle">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>
<br />
<?php if ($this->_tpl_vars['js_enabled']):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/submit.tpl", 'smarty_include_vars' => array('href' => "javascript: if (checkEmailAddress(document.registerform.email) && checkRequired(requiredFields) && check_zip_code(document.getElementById('b_country'), document.getElementById('b_zipcode'))) document.registerform.submit()",'js_to_href' => 'Y')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "submit_wo_js.tpl", 'smarty_include_vars' => array('value' => $this->_tpl_vars['lng']['lbl_submit'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
</td>
</tr>
</table>
<input type="hidden" name="usertype" value="<?php echo $this->_tpl_vars['usertype']; ?>
" />
</form>
<?php else:  echo $this->_tpl_vars['lng']['txt_contact_us_sent']; ?>

<?php endif;  $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_contact_us'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>